/*
	Authors: Samuel Thacker
	Description: This is a test fuction to test 'format.c'.
	Revisions:
		2012/1/27 - Creation of this test function.
*/

#include <stdio.h>
#include <stdlib.h>
#include "format.h"
#include "DummyStructure.h"

int main()
	{
	dll * l;
	char * a = "hello";
	char * b = "What?";
	char * c = "rawr!";
	char * d = "boo!!!";
	l = newList();
	addElement(l,a,"\0","\0","\0");
	addElement(l,a,c,"\0","\0");
	addElement(l,a,c,d,"\0");
	addElement(l,d,c,a,c);
	addElement(l,b,c,a,d);
	addElement(l,a,a,a,a);
	addElement(l,d,a,c,b);
	addElement(l,c,c,c,c);
	format(l,"test.txt");
	delList(l);
	return 0;
	}
